import Vue from 'vue'

const EVENT_BUS = new Vue()

EVENT_BUS._data = {}

EVENT_BUS.clear = function () {
  this._data = {} // 清空挂载数据
  this.$off() // 清空注册事件
}

export { EVENT_BUS }
